import iconFont from '@/utils/iconfont';
import {Menu, Icon} from 'antd';

const IconFont = Icon.createFromIconfontCN({
    scriptUrl: iconFont
})

const { SubMenu } = Menu;

class MenuCom extends React.Component {
    constructor(props) {
      super(props);
      this.state = {
        // ele,
        // items
      }
    }
    render() {
        const {ele} = this.props;
        return(
            <span>
                {/* <IconFont style={{fontSize: '15px', verticalAlign: 'middle'}} type={ele.mapName=='基础地理信息'?'icon-dilixinxi':(ele.mapName=='动植物资源'?'icon-leaf':(ele.mapName=='社会经济'?'icon-jingji':(ele.mapName=='监测数据'?'icon-shuju':'icon-wenjian')))} /> */}
                <IconFont style={{fontSize: '15px', verticalAlign: 'middle'}} type='icon-wenjian' />
                <span>{ele.mapName}</span>
            </span>
        )
    }
    
}
export default MenuCom